namespace CodeConsult.Nordic.nRF8001.ApplicationControlInterface.Events.SystemEvents
{
    public class StartedEvent : AciEventBase
    {
        public const byte OpCode = 0x81;

        public byte OperatingMode { get; set; }
        public byte HwError { get; set; }
        public byte CreditAvailable { get; set; }

        protected override void DecodeFromBuffer()
        {
            OperatingMode = DecodeHelper.GetByte();
            HwError = DecodeHelper.GetByte();
            CreditAvailable = DecodeHelper.GetByte();
        }
    }
}
